#define _CRT_SECURE_NO_WARNINGS 1
#include"SeqList.h"


void test1()
{
	SeqList sql;
	SeqListInit(&sql);
	SeqListPushBack(&sql, 1);
	SeqListPushBack(&sql, 2);
	SeqListPushBack(&sql, 3);
	SeqListPushBack(&sql, 4);
	SeqListPushBack(&sql, 5);
	SeqListPushBack(&sql, 6);


	SeqListPushFront(&sql, 9);
	SeqListPushFront(&sql, 8);
	SeqListPushFront(&sql, 7);
	SeqListPushFront(&sql, 10);
	SeqListPushFront(&sql, 11);
	SeqListPushFront(&sql, 12);

	SeqListPrint(&sql);

	SeqListPopFront(&sql);
	SeqListPopFront(&sql);
	SeqListPopFront(&sql);

	SeqListPrint(&sql);

	printf("%d\n", SeqListFind(&sql,10));
	printf("%d\n", SeqListFind(&sql,5));
	printf("%d\n", SeqListFind(&sql,1));

	SeqListInsert(&sql, 5, 99);

	SeqListPrint(&sql);

	SeqListInsert(&sql, sql.size, 100);
	SeqListInsert(&sql, 0, 100);

	SeqListPrint(&sql);

	SeqListErase(&sql, 0);
	SeqListPrint(&sql);

	SeqListErase(&sql, 5);
	SeqListPrint(&sql);

	SeqListErase(&sql, 7);
	SeqListPrint(&sql);



}
int main()
{
	test1();
	return 0;
}